package org.ccheng.xztx.domain;

import lombok.Data;
import org.ccheng.common.annotation.Attribute;
import org.ccheng.common.annotation.AttributeId;

@Data
public class NewsHelpStudy {

    @AttributeId
    @Attribute(key = "用户ID:", regex = "(?<=href='\\S{0,8}(tower|practiceroom)\\S{0,100}(userId|otherId)=)\\S+(?='>)")
    private String userId;

    @Attribute(key = "行为", regex = "(?<=href='\\S{0,8}(tower|practiceroom)\\S{0,100}(userId|otherId)=\\S{0,8}'>)\\S+(?=</a>)")
    private String action;

    @Attribute(regex = "(?<=href='\\S{0,8})(\\/tower|\\/practiceroom)\\S+(?=\\?)")
    private String api;

}
